CC = swgcc
CPP = swg++


main : my_openrank.o 
	$(CPP) -O3 -msimd -mieee -mhybrid -o $@ $^ -lm -lm_slave
#	$(CC) -O3 -mieee -mhybrid -o $@ $^ -lm -lm_slave

my_openrank.o : my_openrank.cpp
	$(CPP) $(HCFLAGS) -c $^ -o $@

.PHONY:clean
clean:
	rm -rf my_openrank.o
run:
	bsub -I -b -q q_sw_expr -share_size 6144 -host_stack 1024 -n 1 -cgsp 64 -perf ./main